import { createApp } from 'vue'
import '@/styles/index.css'
import App from './App.vue'
import router from "./router/index";
import { createPinia } from 'pinia'
import "element-plus/theme-chalk/dark/css-vars.css";//深色模式
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import '@/assets/svg/iconfont.js'

import { setupSvgIcon } from '@/components/SvgIcon/index'


const app = createApp(App);
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}

setupSvgIcon(app);


app.use(createPinia());

app.use(router);
app.mount('#app');

